<script setup lang="ts">
import { useRouter } from 'vue-router';

const router = useRouter();
const login = () => {
  router.push('/home');
};
</script>
<template>
  <h1>Login 登录页</h1>
  <button @click="login">点击登录</button>
  <button @click="router.push('/home')">跳转到主页</button>
</template>
